package org.brakepedal.server.support.websocket.route;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;

/**
 * Date: 2024/3/31 18:58
 *
 * @author Huanyu Mark
 */
@Getter
public abstract class Message<B> {

    private final B body;

    private final String route;
    @JsonCreator
    protected Message(String route,B body) {
        this.body = body;
        this.route = route;
    }
}
